import request from '@/utils/request'
// 获取产品列表
export function getProduct(data) {
	return request({
		url: '/car/getProduct',
		method: 'get'
	})
}

//  查询列表
export function getList(data) {
	return request({
		url: '/car/getCarList',
		method: 'post',
		data: data
	})
}
// 查询详情
export function getDetail(data) {
	return request({
		url: '/car/getCarInfo',
		method: 'post',
		data: data,
		// responseType:'arraybuffer'
	})
}
// 上传提交按钮
export function submitUpload(data) {
	return request({
		url: '/car/initCarInfo',
		method: 'post',
		data: data
	})
}
// 上传接口

export function ossUpload(data) {
	return request({
		url: '/ossController/upload',
		method: 'post',
		header: {
			"Content-Type": "multipart/form-data"
		},
		data: data
	})
}